<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div {
        width: 300px;
        height: 300px;
        background-color: pink;
    }

    div::before {
        content: "老鼠";
        width: 100px;
        height: 100px;
        background-color: brown;
        display: block;
        padding: 20px;

    }

    div::after {
        content: "大米";
        width: 10px;
        height: 100px;
        background-color: orange;
    }
</style>

<body>
    <div>
        测试
    </div>
    <div>

    </div>
</body>

</html>